<?php
/**
 * User: zhangligang
 * Email: tzhang2450@163.com
 * Date: 2018/12/20
 * Time: 17:08
 */

namespace App\Http\Controllers;

class UserController extends Controller
{

    public function index()
    {
        $now = date('Y', time());
        return $this->baseView('public.user.index', ['menu' => 'index', 'year' => $this->year, 'now' => $now]);
    }

    public function edit()
    {
        return $this->baseView('public.user.edit', ['menu' => '']);
    }

    public function contest()
    {
        return $this->baseView('public.user.contest', ['menu' => 'contest']);
    }

    public function contestDetail($id)
    {
        return $this->baseView('public.user.contest-detail', ['menu' => 'contest', 'id' => $id]);
    }

    public function file()
    {
        $now = date('Y', time());
        return $this->baseView('public.user.file', ['menu' => 'file', 'year' => $this->year, 'now' => $now]);
    }

    public function increase()
    {
        return $this->baseView('public.user.increase', ['menu' => 'increase']);
    }

    public function increaseCrease()
    {
        return $this->baseView('public.user.increase-create', ['menu' => 'increase']);
    }

    public function increaseEdit($id)
    {
        return $this->baseView('public.user.increase-edit', ['menu' => 'increase', 'id' => $id]);
    }

    public function star()
    {
        return $this->baseView('public.user.star', ['menu' => 'star']);
    }
}